<?php
/*
点击关注
*/
class UserFollowRemoveAction extends UserAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'json';
	}
	
	public function execute()
	{
		$this->code 	= 0;
		$user_id 		= intval($this->context->post('uid'));
		if (!$user_id > 0){
			$this->code 	= 400;
			$this->message	= '用户不存在';
			return;
		}
		$followService	= new FollowService();
		$tmp	= $followService->FollowUserRemove($this->data['user']['id'], $user_id);
		if ($tmp){
			$this->code 	= 200;
			$this->data['status'] = 0;
			$this->data['follow_id'] = $user_id;
		}
		
	}
}
